class Phone:
    id = None
    producer = "LI"
    def call_by_5G(self):
        print("使用5G通话")

# 定义子类，复写父类成员
class MyPhone(Phone):
    producer = "LIJIANQI"       # 复写父类的成员属性
    def call_by_5G(self):
        print("开启CPU超频模式")
        # 方法1
        # print(f"父类的厂商是：{Phone.producer}")
        # Phone.call_by_5G(self)

        # 方法2
        print(f"父类的厂商是：{super().producer}")
        super().call_by_5G()
        print("使用5G通话")

myphone = MyPhone()
print(myphone.producer)
myphone.call_by_5G()